home *** CD-ROM | disk | FTP | other *** search
Wrap
// $Id: GCCmode.FPL 1.3 1995/10/04 13:56:15 jskov Exp jskov $ // $VER: GCCMode.FPL 1.1 (05.10.95) © Jesper Skov string makeOptions=""; //»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»» changeMakeOptions() «« export void changeMakeOptions() { makeOptions = PromptString(makeOptions, "Enter new make options"); } //»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»» gccCompile() «« export void gccCompile() { int parent; int entryID = GetEntryID("_gcc compile_"); string path = ReadInfo("file_path"); string me; if(!ReadInfo("filehandler")){ SetInfo(-2,"filehandler",1); Delay(100); // wait 2 secs } me = "\""+ReadInfo("disk_name")+":_gcc compile_\""; if (!strlen(path)) path = ReadInfo("directory"); if(!entryID){ entryID = New(); parent = CurrentBuffer(entryID); Rename("_gcc compile_"); CurrentBuffer(parent); } Visible(0); Activate(entryID,1); ResizeView(ReadInfo("view_lines",entryID)/2,entryID); Visible(1); SaveString("T:gccCompile","echo >"+me+" Compilation started at `date`\ncd "+path+"\nmake >>"+me+" "+makeOptions+"\necho >>"+me+" Compilation ended at `date`"); System("run execute t:gccCompile"); } //»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»» key bindings «« AssignKey("gccCompile();","control c control c", "gcc_mode"); AssignKey("changeMakeOptions();","control C control C", "gcc_mode"); //»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»» GCCMode settings «« ConstructInfo("gcc_mode", "","", "LBH","", 0,0,0); ConstructInfo("gcc_mode_ext", "","", "GSHW","", 0,0,"*c*h*"); ConstructInfo("gcc_mode_exe", "","", "GSHW","", 0,0,"CModeInit();"); AddMode(1, "gcc_mode", "gcc_mode_ext", "gcc_mode_exe");